package com.edu.hre.struts.form.pim;

import java.util.Date;

import org.apache.struts.action.ActionForm;

import com.edu.hre.common.utils.CommonUtils;

public class EmpExperienceForm extends ActionForm {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6056273106708257020L;
	private int id;
    private int empNumber;
    private String company;
    private String jobTitle;
    private Date fromDate;
    private Date toDate;
    private String comment;

    private boolean isSelected = false;

	public boolean isSelected() {
		return isSelected;
	}

	public void setSelected(boolean isSelected) {
		this.isSelected = isSelected;
	}
	
	public boolean getIsSelected() {
		return isSelected;
	}

	public void setIsSelected(boolean isSelected) {
		this.isSelected = isSelected;
	}

	public int getEmpNumber() {
		return empNumber;
	}

	public void setEmpNumber(int empNumber) {
		this.empNumber = empNumber;
	}

	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public String getJobTitle() {
		return jobTitle;
	}

	public void setJobTitle(String jobTitle) {
		this.jobTitle = jobTitle;
	}

	public String getFromDate() {
		return CommonUtils.dateToString(fromDate);
	}

	public void setFromDate(String fromDate) {
		this.fromDate = CommonUtils.stringToDate(fromDate);
	}

	public String getToDate() {
		return CommonUtils.dateToString(toDate);
	}

	public void setToDate(String toDate) {
		this.toDate = CommonUtils.stringToDate(toDate);
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
}
